package com.greyu.ysj.entity;

import java.io.Serializable;

/**
 * @author 
 */
public class CbtMinerRatio implements Serializable {
    private Integer id;

    /**
     * 用户level
     */
    private Integer leve;

    /**
     * 最小投资
     */
    private Double minAsset;

    /**
     * 最大投资
     */
    private Double maxAsset;

    /**
     * 比率
     */
    private Double ratio;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getLeve() {
        return leve;
    }

    public void setLeve(Integer leve) {
        this.leve = leve;
    }

    public Double getMinAsset() {
        return minAsset;
    }

    public void setMinAsset(Double minAsset) {
        this.minAsset = minAsset;
    }

    public Double getMaxAsset() {
        return maxAsset;
    }

    public void setMaxAsset(Double maxAsset) {
        this.maxAsset = maxAsset;
    }

    public Double getRatio() {
        return ratio;
    }

    public void setRatio(Double ratio) {
        this.ratio = ratio;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        CbtMinerRatio other = (CbtMinerRatio) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getLeve() == null ? other.getLeve() == null : this.getLeve().equals(other.getLeve()))
            && (this.getMinAsset() == null ? other.getMinAsset() == null : this.getMinAsset().equals(other.getMinAsset()))
            && (this.getMaxAsset() == null ? other.getMaxAsset() == null : this.getMaxAsset().equals(other.getMaxAsset()))
            && (this.getRatio() == null ? other.getRatio() == null : this.getRatio().equals(other.getRatio()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getLeve() == null) ? 0 : getLeve().hashCode());
        result = prime * result + ((getMinAsset() == null) ? 0 : getMinAsset().hashCode());
        result = prime * result + ((getMaxAsset() == null) ? 0 : getMaxAsset().hashCode());
        result = prime * result + ((getRatio() == null) ? 0 : getRatio().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", leve=").append(leve);
        sb.append(", minAsset=").append(minAsset);
        sb.append(", maxAsset=").append(maxAsset);
        sb.append(", ratio=").append(ratio);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}